<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/conn_db.php");?>
<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/Util.php");?>
<?php //DB Open

	$result = null;
	$db = new MyDB ( false );
	$db->err_report = true;

?>
<?php

	$util = new Util();

	$sid = $_GET['sid'];

	$sql = "SELECT article_title,article_contents1,article_title_img from tb_board_article WHERE article_sid=".$sid." ORDER BY article_sid DESC";
	$db->query ( $sql );
	$query = $db->result;
	$total = mysql_num_rows ($query);
	if($total>0) $root = mysql_fetch_object($query);

	$i=0;
?>
<?php //DB Close

	$db->close ();

	$contents = $root->article_contents1;

	$contents = str_replace("font-family:한양신명조;","font-family:굴림;",$contents);
	$contents = str_replace("font-family:바탕;","font-family:굴림;",$contents);
	$contents = str_replace("font-size:14px","font-size:12px",$contents);
	$contents = str_replace("font-size:13pt","font-size:13px",$contents);

?>
<? include "inc/inc_header.php" ?><!-- header -->
	<script type="text/javascript">
		$().ready(function (){
			var hig=document.body.scrollHeight;
			var hig1=document.body.scrollWidth;
			var reHig = hig+80;
			var reHig1 = hig1+20;
			parent.resizeTo(reHig1,reHig);
			//alert(reHig);
		});
	</script>
<body >
	<table width="460" border="0" cellpadding="0" cellspacing="10" bgcolor="#696969">
	  <tr>
		<td bgcolor="#FFFFFF" style="padding:20px"><table width="400" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text06" style="padding-bottom:10px;"><strong><?php echo $root->article_title;?></strong></td>
		  </tr>
		  <?php if( $root->article_title_img ) :?>
		  <tr>
			<td style="padding-bottom:10px;"><img src="uploads/2/<?php echo $root->article_title_img;?>" width="150" height="194"></td>
		  </tr>
		  <?php endif;?>
		  <tr>
			<td style="font-family:굴림;font-size:13px;line-height:2;"><?php echo $contents;?></td>
		  </tr>
		  <tr>
			<td align="right" style="padding-top:10px;"><img src="img/surn/cont_btn02.jpg" width="50" height="22" border="0" onClick="javascript:window.close();"  style="cursor:hand"></td>
		  </tr>
		</table></td>
	  </tr>
	</table>
<? include "inc/inc_footer.php" ?><!-- footer -->